import request from '@/utils/request'

// 查询列表
export function listRecords(query) {
  return request({
    url: '/business/finance/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getRecords(id) {
  return request({
    url: '/business/finance/' + id,
    method: 'get'
  })
}

// 新增
export function addRecords(data) {
  return request({
    url: '/business/finance',
    method: 'post',
    data: data
  })
}

// 修改
export function updateRecords(data) {
  return request({
    url: '/business/finance',
    method: 'put',
    data: data
  })
}

// 删除
export function delRecords(id) {
  return request({
    url: '/business/finance/' + id,
    method: 'delete'
  })
}
// 根据ID查询
export function getInfo(data) {
  return request({
    url: '/business/finance/getInfo',
    method: 'post',
    data
  })
}
// 去支付
export function toPay(data) {
  return request({
    url: '/business/finance/toPay',
    method: 'post',
    data
  })
}
// 去销毁
export function toDestroy(data) {
  return request({
    url: '/business/finance/toDestroy',
    method: 'post',
    data
  })
}


export function bulkPayments(data) {
  return request({
    url: '/business/finance/bulkPayments',
    method: 'post',
    data
  })
}
export function paymentAddConfirm(data){
  return request({
    url:'',
    method:'post',
    data
  })
}

// 添加配置账户
export function settingAccount(data) {
  return request({
    url: '/tamount/updaamount',
    method: 'post',
    data
  })
}

// 查询配置账户
export function listAmount(data) {
  return request({
    url: '/tamount/listTAmount',
    method: 'get',
    data
  })
}

// 删除配置账户
export function delAmount(data) {
  return request({
    url: '/tamount/delecTtamount/' + data,
    method: 'GET',
  })
}
